# -*- coding: utf-8 -*-
"""
@Time    : 2024/6/25 14:48 
@Author  : ZhangShenao 
@File    : condition.py 
@Desc    : 条件判断
"""

# 通过While实现循环
i = 0
while i < 100:
    print(i)
    i += 1

# 使用and实现逻辑与
b1 = 1 < 2 and 'abc' == 'abc' and True
print(f'b1: {b1}')

age = 32
sex = 'male'
if age >= 30 and sex == 'male':
    print('你是大叔')

# 使用or实现逻辑或
b2 = 1 > 2 or 'a' == 'b' or True
print(f'b2: {b2}')

# 使用not实现逻辑非
if not (sex == 'female'):
    print('你不是女生')
